package com.erclab.internal.xpresso.lang;

import org.apache.log4j.Logger;

import com.erclab.internal.xpresso.Application;
import com.erclab.internal.xpresso.conf.Settings;

public class SimpleLanguageHandler extends LanguageHandler {

	// Create the log for this class
	private static final Logger log = Logger.getLogger(SimpleLanguageHandler.class);
	
	public SimpleLanguageHandler() throws LanguageException {
		super();
	}

	public String getLanguage(Object aGenericObject) {
		if(this.languages == null){
			return null;
		} else {
			// Logic to decide what language to use
			return Settings.getProperty("application.language.default");
		}
	}

}
